package com.lhy.framework.beans.factory.support;

import com.lhy.framework.beans.factory.factory.BeanDefinition;

import java.util.List;

/**
 * @ClassName BeanDefinitionRegistry
 * @Description
 * @Author lihaiyang
 * @Date 2022/9/8 22:34
 * @Version 1.0
 */
public interface BeanDefinitionRegistry {

    /**
     * 注册beanDefinition信息
     * @param beanName
     * @param beanDefinition
     */
    void registerBeanDefinition(String beanName, BeanDefinition beanDefinition);

    BeanDefinition getBeanDefinition(String beanName);

    boolean containsBeanDefinition(String beanName);

    List<String> getBeanDefinitionNames();

}
